<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type">
    <meta charset="utf-8">
    <title>{{$data.title}} - 后台管理</title>
    <link href="{{$smarty.const.APP_URL}}templates/admin/css/admin.css" type="text/css" rel="stylesheet">
    <link href="{{$smarty.const.APP_URL}}templates/admin/js/artDialog/black.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/jquery.cookie.js"></script>
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/artDialog/jquery.artDialog.min.js"></script>
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/admin.js"></script>
    <script type="text/javascript">
        var this_uri = "/admin/order/intention";
    </script>
</head>
<body>

<div id="header">
    <div class="logo"><a href="/admin/"><img src="{{$smarty.const.APP_URL}}templates/admin/images/logo.png" title="后台首页"></a></div>
    <div class="loading"><div id="ajax-loader" title="Ajax数据更新中..."></div></div>
    <div id="topbar">
        <!--顶部菜单 start-->
        {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/topmenu.html"}}
        <!--顶部菜单 end-->
        <!--顶部右侧 start-->
        {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/topuser.html"}}
        <!--顶部右侧 end-->
        <div></div>
    </div>
</div>

<div><!-- 外层添加一个DIV解决IE8下margin-top的问题 -->
    <table id="maintable" cellpadding="0" cellspacing="0">
        <tbody><tr>
            <!--左侧菜单 start-->
            {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/leftmenu.html"}}
            <!--左侧菜单 end-->
            <!--主要TD start-->
            <td class="maintd" valign="top">
                <div class="maindiv">
                    <div id="main">
                        <div class="itemtitle">
                            <h3>意向信息</h3>
                            <ul>
                                <a class="link-btn" href="/admin/order/intention">意向列表</a>
                            </ul>
                        </div>
                        <form action="/admin/order/intention_edit_post" method="post" name="form1" enctype="multipart/form-data">
                            <input type="hidden" name="intention_id" value="{{$intention_info.intention_id}}"/>
                            <input type="hidden" name="match_id" value="{{$intention_info.match_id}}"/>
                            <table class="tb">
                                <tbody>
                                <tr>
                                    <td class="tbheader" colspan="38">编辑意向信息</td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>编号:</b>
                                    </td>
                                    <td class="td last">
                                        {{$intention_info.intention_id}}
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>意向类型:</b>
                                    </td>
                                    <td class="td last">
                                        {{if $intention_info.intention_type==1}}采购意向{{/if}}
                                        {{if $intention_info.intention_type==2}}供货意向{{/if}}
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>采购方:</b>
                                    </td>
                                    <td class="td last">
                                       {{$intention_info.purchase_info.member_company}} {{$intention_info.purchase_info.member_truename}} (采购：{{$intention_info.purchase_info.pc_name}} {{$intention_info.purchase_info.brand_name}} {{$intention_info.purchase_info.spec_name}} {{$intention_info.purchase_info.purchase_price}}元/{{$intention_info.purchase_info.unit_name}} {{$intention_info.purchase_info.purchase_num}}{{$intention_info.purchase_info.unit_name}})
                                    </td>
                                </tr>
                                 <tr>
                                    <td class="td">
                                        <b>供货方:</b>
                                    </td>
                                    <td class="td last">
                                        {{$intention_info.supply_info.member_company}} {{$intention_info.supply_info.member_truename}} (采购：{{$intention_info.supply_info.pc_name}} {{$intention_info.supply_info.brand_name}} {{$intention_info.supply_info.spec_name}} {{$intention_info.supply_info.supply_price}}元/{{$intention_info.supply_info.unit_name}} {{$intention_info.supply_info.supply_num}}{{$intention_info.supply_info.unit_name}})
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>产品分类:</b>
                                    </td>
                                    <td class="td last">
                                        {{$intention_info.intention_sort}}
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>数量:</b>
                                    </td>
                                    <td class="td last">
                                        {{$intention_info.intention_num}}
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>
                                            总价:
                                        </b>
                                    </td>
                                    <td class="td last">
                                        ￥{{$intention_info.intention_price*$intention_info.intention_num}}
                                    </td>
                                </tr>
                                
                                <tr>
                                    <td class="td">
                                        <b>留言:</b>
                                        
                                    </td>
                                    <td class="td last">
                                        <div class="ok_tab">
                                            <!--此处增加百度编辑器-->
                                            <textarea cols="50" rows="5"  id="editor" name="intention_message" style="width:800px;height:400px;">{{$intention_info.intention_message}}</textarea>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>状态:</b>
                                    </td>
                                    <td class="td last">
                                        <select name="intention_state">
                                            <option value="1" {{if $intention_info.intention_state==1}}selected{{/if}}>未审核</option>
                                            <option value="2" {{if $intention_info.intention_state==2}}selected{{/if}}>已审核</option>
                                        </select>
                                        <font class="red">* 必填项</font>
                                        <!-- <select name="match_state_id" style="display: none;">
                                            <option value="1" {{if $intention_info.intention_state==1}}selected{{/if}}>未审核</option>
                                            <option value="2" {{if $intention_info.intention_state==2}}selected{{/if}}>已审核</option>
                                        </select -->>
                                    </td>
                                </tr>
                                <!-- <tr>
                                    <td class="td">
                                        <b>
                                            排序:
                                        </b>
                                    </td>
                                    <td class="td last">
                                        <input type="text" size="30" value="{{$purchase_info.purchase_sort}}" name="purchase_sort">
                                        <font class="light">排序 3位正整数 升序排序</font>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>是否显示:</b>
                                    </td>
                                    <td class="td last">
                                        <input type="radio" value="1" name="purchase_show" {{if $purchase_info.purchase_show==1}}checked{{/if}}><b>是</b>
                                        <input type="radio" value="2" name="purchase_show" {{if $purchase_info.purchase_show==2}}checked{{/if}}><b>否</b>
                                        <span class="light">请选择.</span>
                                    </td>
                                </tr> -->
                                </tbody>
                            </table>
                            <div class="submit">
                                <input class="save" type="submit" value="提交" name="save">
                                <input class="cancel" type="reset" value="重置" name="save">
                            </div>
                        </form>
                        <!--底部信息 start-->
                        {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/sysinfo.html"}}
                        <!--底部信息 end-->
                    </div>
                </div>
            </td>
            <!--主要TD end-->
        </tr>
        </tbody></table>
</div>

<script type="text/javascript">
    jQuery(document).ready(function() {
        //调整高度
        $("#container").height($(window).height()-40);
        $(window).resize(function() {
            $("#container").height($(window).height()-40);
        });

        App.init();//左侧菜单初始化

        var a101 = $("#topbar"); //顶部下接菜单
        a101.find("dl").Jdropdown({delay: 0}, function(a){});

    });
</script>
<!--百度编辑器-->
<script type="text/javascript" charset="utf-8" src="/data/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/data/ueditor/ueditor.all.min.js"> </script>
<!--百度编辑器配置-->
<script type="text/javascript">
    //实例化编辑器
    var ue = UE.getEditor('editor');
</script>
</body>
</html>